﻿using System;
using System.Net;
using System.ServiceModel.DomainServices.Client;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using AR.Entities;
using AR.Web.Services;

namespace AR.Models.Queries
{
    internal class GetEntretienTechniqueQuery : IModelQuery<EntretienTechniqueContext, EntitySet<THEME>>
    {

        public GetEntretienTechniqueQuery()
        {
           // this.filter = filter;
        }

        public EntitySet<THEME> Execute(EntretienTechniqueContext model)
        {

            var query = model.GetTHEMEQuery();
            model.Load(query);
            return model.THEMEs;
            
            
        }

        EntitySet<THEME> IModelQuery<EntretienTechniqueContext, EntitySet<THEME>>.Execute(EntretienTechniqueContext model)
        {
            throw new NotImplementedException();
        }
    }
}
